﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryAndStrategy
{
    /// <summary>
    /// IC卡类
    /// </summary>
    public class Card
    {
        //IC卡号码
        private string _cardNo;
        //卡内的固定交易金额
        private int _steadyMoney = 0;
        //卡内自由交易金额
        private int _freeMoney = 0;

        public string CardNo
        {
            get
            {
                return _cardNo;
            }
            set
            {
                _cardNo = value;
            }
        }

        public int SteadyMoney
        {
            get
            {
                return _steadyMoney;
            }
            set
            {
                _steadyMoney = value;
            }
        }

        public int FreeMoney
        {
            get
            {
                return _freeMoney;
            }
            set
            {
                _freeMoney = value;
            }
        }
    }
}
